/*
reset
*/

/*
标题颜色：#333 18px
内容颜色：#999 13px
粉红色：  #ea6f5a
*/

div,
p,
h1,
img,
ul,
li,
input,
nav,
footer,
a,
body,
html,
span {
  margin: 0;
  padding: 0;
  font-size: inherit;
  color: #999;
}

body {
  font-size: 13px;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  cursor: pointer;
}

.box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.box > header {
  z-index: 1000;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  width: 100%;
  height: 58px;
  font-size: 15px;
  padding-left: 10%;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e7e7e7;
  background: url(https://cdn2.jianshu.io/assets/web/nav-logo-4c7bbafe27adc892f3046e6978459bac.png)
    no-repeat left center / 100px 56px;
}

header > .header-left {
  display: flex;
  align-items: center;
  margin-left: 8%;
}

header > .header-left > a:first-child {
  width: 100px;
  text-align: center;
  color: #ea6f5a;
  font-weight: 600;
}
header > .header-left > a:nth-child(2) {
  width: 100px;
  text-align: center;
  color: #333;
  font-weight: 600;
}

header > .header-left > form {
  position: relative;
}

/* input */
header > .header-left > form > input {
  padding-left: 15px;
  width: 150px;
  height: 40px;
  font-size: 13px;
  border-radius: 20px;
  border: none;
  background: #e8e8e8;
}

/* 处理点击后的边框 */
header > .header-left > form > input:focus {
  outline-style: none;
}

/* 
    右边的布局
*/

header > .header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: 11%;
}
header > .header-right > a {
  width: 40px;
  margin: 0 10px;
}

header > .header-right > a:nth-child(3) {
  width: 100px;
  height: 40px;
  border: 1px solid #ea6f5a;
  border-radius: 25px;
  line-height: 40px;
  color: #ea6f5a;
  text-align: center;
  font-weight: 600;
}
header > .header-right > a:nth-child(3):hover {
  background: rgba(236, 97, 73, 0.1);
}
header > .header-right > a:nth-child(4) {
  width: 100px;
  height: 40px;
  border-radius: 25px;
  line-height: 40px;
  color: #fff;
  text-align: center;
  background: #ea6f5a;
  font-weight: 600;
}

/* icon */
header > .header-left > form > i {
  position: absolute;
  left: 81%;
  top: 9px;
  font-size: 18px;
}

/*主体*/
.box > .main {
  width: 625px;
  height: 200px;
  margin: 5% 3%;
}

.box > .main > .swiper {
  position: relative;
  width: 100%;
  height: 270px;
  border-radius: 7px;
  margin-top: 3%;
  overflow: hidden;
}

.box > .main > .swiper > .swiperList {
  position: absolute;
  display: flex;
  width: 3500px;
  height: 270px;
  animation: 20s swiper infinite; /*循环*/
}
.swiper > .swiperList > li {
  width: 625px;
  height: 270px;
}
.box > .main > .swiper > .swiperList > li:first-child {
  background: url(images/banner.jpg) no-repeat center center / 100% 100%;
}
.box > .main > .swiper > .swiperList > li:nth-child(2) {
  background: url(images/banner.jpg) no-repeat center center / 100% 100%;
}
.box > .main > .swiper > .swiperList > li:nth-child(3) {
  background: url(images/banner.jpg) no-repeat center center / 100% 100%;
}
.box > .main > .swiper > .swiperList > li:nth-child(4) {
  background: url(images/banner.jpg) no-repeat center center / 100% 100%;
}
.box > .main > .swiper > .swiperList > li:nth-child(5) {
  background: url(images/banner.jpg) no-repeat center center / 100% 100%;
}

/* 文章列表 */
.article {
  display: flex;
  width: 100%;
  height: 100px;
  border-top: 1px solid #e5e5e5;
  padding: 25px 0;
}

.article > div {
  position: relative;
}

.article div h1 {
  color: #333;
  font-size: 18px;
  height: 20px;
  line-height: 20px;
}

.article p {
  height: 60px;
  margin-top: 5px;
}

.article i {
  font-size: 14px;
}

.article span {
  position: absolute;
  bottom: 0px;
  left: 0px;
  font-size: 12px;
}

.article i:first-of-type {
  position: absolute;
  bottom: 0px;
  left: 70px;
}

.article i:first-of-type::after {
  content: "5";
  position: absolute;
  left: 15px;
  top: 1px;
  font-size: 11px;
}

.article i:nth-of-type(2) {
  position: absolute;
  bottom: 0px;
  left: 100px;
}

.article i:nth-of-type(2)::after {
  content: "33";
  position: absolute;
  left: 15px;
  top: 1px;
  font-size: 11px;
}

.article img {
  width: 150px;
  height: 100px;
}

/* 侧边栏 */
.box > .right {
  width: 280px;
  margin-top: 6%;
}

/* 图片列表布局 */
.box > .right > .imgList > li > img {
  width: 280px;
  height: 50px;
}

.right > .title {
  display: flex;
  justify-content: space-between;
  margin-top: 10%;
}

.right > .title > span:first-child {
  font-size: 14px;
  color: #969696;
}
.right > .title > span:nth-child(2) {
  font-size: 20px;
  color: #969696;
}

/* 作者列表 */
.authors {
    display: flex;
    flex-wrap: wrap;
  }
  
  .authors>span {
    width: 50%;
  }
  
  .authors>span:last-of-type {
    text-align: right;
  }
  
  .authors>span>i {
    margin-right: 5px;
    font-size: 14px;
  }
  
  .authors>div {
    width: 100%;
  }
  
  .author {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    height: 100px;
    padding-left: 80px;
  }
  
  .author>img {
    position: absolute;
    left: 0;
    top: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
  }
  
  .author>span {
    height: 30px;
    line-height: 30px;
  }
  
  .author>span:first-of-type {
    width: 50%;
    color: #333;
  }
  
  .author>span:nth-of-type(2) {
    width: 50%;
    text-align: right;
    color: green;
  }
  
  .author>span:nth-of-type(3) {
    width: 100%;
  }
  
  .authors>div:last-child {
    height: 34px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    line-height: 34px;
    color: #333;
  }

/* 页脚 */
.box > footer {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
}

/*动画*/
@keyframes swiper {
  0% {
    left: 0px;
  }

  12% {
    left: 0px;
  }

  25% {
    left: -625px;
  }

  37% {
    left: -625px;
  }

  50% {
    left: -1250px;
  }

  62% {
    left: -1250px;
  }

  75% {
    left: -1875px;
  }

  87% {
    left: -1875px;
  }

  100% {
    left: -2500px;
  }
}

/**
响应式
*/

